/*    
    BibleNotebook - A bible reader software
    Copyright (C) 2014  Williams Fernando Lopez

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
 */

package com.simplebible.dictionary.objects;

import com.simplebible.objects.CommonObject;

/**
 *
 * @author Williams Lopez
 */
public class DictDefinition extends CommonObject{

    private String wordKey;
    private String word;
    private String[] definitions;
    private String[] references;

    public String[] getDefinitions() {
        return definitions;
    }

    public void setDefinitions(String[] definitions) {
        this.definitions = definitions;
    }

    public String[] getReferences() {
        return references;
    }

    public void setReferences(String[] references) {
        this.references = references;
    }

    public String getWord() {
        return word;
    }

    public void setWord(String word) {
        this.word = word;
    }

    public String getWordKey() {
        return wordKey;
    }

    public void setWordKey(String wordKey) {
        this.wordKey = wordKey;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(wordKey);
        sb.append("\t");
        sb.append(word);
        sb.append("\n");
        if(definitions != null){
            for(String s:definitions){
                sb.append(s);
                sb.append("\n");
            }
        }
        sb.append("\n");
        if(references != null){
            for(String s:references){
                sb.append(s);
                sb.append("\n");
            }
        }
        return sb.toString();
    }





    

}
